<?php

namespace App\Http\Controllers\Admin;

//use Illuminate\Foundation\Auth\User;
use App\Models\Permission;
use App\Models\Role;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Gate;
use Illuminate\Support\Facades\DB;
use App\Http\Controllers\Admin\CommonController;
use Illuminate\Support\Facades\Route;

class IndexController extends Controller
{
    public function index(){
        return view('admin.index');
    }

    public function create(){
        return 'create';
    }

    public function store(Request $request){
        return 'store';
    }

    public function edit($id){
        return 'create';
    }

    public function update(Request $request,$id){
        return 'update';
    }

    public function destroy($id){
        return 'destroy';
        //$acion_logs = Action_log::orderBy('created_at', 'desc')->paginate(config('page.page_size'));
        //return $acion_logs;
    }
}


